package sf.dao.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TUser entity. @author MyEclipse Persistence Tools
 */

public class TUser implements java.io.Serializable {

	// Fields

	private String suserid;
	private Integer nid;
	private String srealname;
	private Integer nbranch;
	private Integer nbuty;
	private String spwd;
	private Date regdate;
	private String ssex;
	private Integer ncity;
	private String smarry;
	private Long nidcard;
	private String sphone;
	private Long nhandset;
	private String semail;
	private String saddress;
	private Set<TRole> roles = new HashSet<TRole>();

	// Constructors

	/** default constructor */
	public TUser() {
	}

	/** full constructor */
	public TUser(Integer nid, String srealname, Integer nbranch, Integer nbuty,
			String spwd, Date regdate, String ssex, Integer ncity,
			String smarry, Long nidcard, String sphone, Long nhandset,
			String semail, String saddress) {
		this.nid = nid;
		this.srealname = srealname;
		this.nbranch = nbranch;
		this.nbuty = nbuty;
		this.spwd = spwd;
		this.regdate = regdate;
		this.ssex = ssex;
		this.ncity = ncity;
		this.smarry = smarry;
		this.nidcard = nidcard;
		this.sphone = sphone;
		this.nhandset = nhandset;
		this.semail = semail;
		this.saddress = saddress;
	}

	// Property accessors

	public String getSuserid() {
		return this.suserid;
	}

	public void setSuserid(String suserid) {
		this.suserid = suserid;
	}

	public Integer getNid() {
		return this.nid;
	}

	public void setNid(Integer nid) {
		this.nid = nid;
	}

	public String getSrealname() {
		return this.srealname;
	}

	public void setSrealname(String srealname) {
		this.srealname = srealname;
	}

	public Integer getNbranch() {
		return this.nbranch;
	}

	public void setNbranch(Integer nbranch) {
		this.nbranch = nbranch;
	}

	public Integer getNbuty() {
		return this.nbuty;
	}

	public void setNbuty(Integer nbuty) {
		this.nbuty = nbuty;
	}

	public String getSpwd() {
		return this.spwd;
	}

	public void setSpwd(String spwd) {
		this.spwd = spwd;
	}

	public Date getRegdate() {
		return this.regdate;
	}

	public void setRegdate(Date regdate) {
		this.regdate = regdate;
	}

	public String getSsex() {
		return this.ssex;
	}

	public void setSsex(String ssex) {
		this.ssex = ssex;
	}

	public Integer getNcity() {
		return this.ncity;
	}

	public void setNcity(Integer ncity) {
		this.ncity = ncity;
	}

	public String getSmarry() {
		return this.smarry;
	}

	public void setSmarry(String smarry) {
		this.smarry = smarry;
	}

	public Long getNidcard() {
		return this.nidcard;
	}

	public void setNidcard(Long nidcard) {
		this.nidcard = nidcard;
	}

	public String getSphone() {
		return this.sphone;
	}

	public void setSphone(String sphone) {
		this.sphone = sphone;
	}

	public Long getNhandset() {
		return this.nhandset;
	}

	public void setNhandset(Long nhandset) {
		this.nhandset = nhandset;
	}

	public String getSemail() {
		return this.semail;
	}

	public void setSemail(String semail) {
		this.semail = semail;
	}

	public String getSaddress() {
		return this.saddress;
	}

	public void setSaddress(String saddress) {
		this.saddress = saddress;
	}

	public Set<TRole> getRoles() {
		return roles;
	}

	public void setRoles(Set<TRole> roles) {
		this.roles = roles;
	}

    

}